package com.ldg.order.service.impl;

import com.ld.pojo.TbPayLog;
import com.ldg.order.mapper.TbPayLogMapper;
import com.ldg.order.service.PayLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: Liudao
 * @Date: 2022-10-20-19:54
 * @Description:
 */
@Service
public class PayLogServiceImpl implements PayLogService {
    @Autowired
    private TbPayLogMapper payLogMapper;
    //根据交易号查询支付日志
    @Override
    public TbPayLog findPayLogByTradeNo(String out_trade_no) {
        return payLogMapper.selectById(out_trade_no);
    }
    //根据id更新支付日志
    @Override
    public void updatePayLog(TbPayLog payLog) {
        payLogMapper.updateById(payLog);
    }
}
